Comments

first thank you for helping :D

Yes my program gives 1, according to the problem I can take a subsequence by deletion of several characters, so in my program with "vovovov" I delete the first and last 'o' then it becomes "vvovv" and the answer will be 1.

what is wrong with that ?

UPD: I got it, more than one 'v' must be consecutive-no 'o' between them- to be able to count them. thank you again :)