Hacker rank problem


it is getting wrong output

Hi chandra
Pls share your code