https://ide.codingblocks.com/s/59925
last three test cases showing wrong answer ,please help
your first loop should start with zero you can refer this