Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Maintain a pointer on word and another pointer on string “abc”.
If the two characters that are being pointed to differ, Increment the answer and the pointer to the string “abc” by one.