Https://hack.codingblocks.com/app/practice/2?offset=20

here is problem link on Hackerblocks:- https://hack.codingblocks.com/app/practice/2?offset=20
this is my solution link:- https://ide.codingblocks.com/s/341359
What is problem in my solution? Why I am not getting 100 for this?
Even sample testcase pass successfully. Please suggest correction for this