int camelcase(string s)
{
int count=0;
for(int i=0;i<s.length();i++)
{
if(i==0)
{
count++;
}
else if(s[i]>=65 && s[i]<=90)
{
count++;
}
}
return count;
}
Add your comment