this is my code plz tell the problem in it. And i think maybe i am not able to understand the question properly so can you plz give me an example to explain it.
Not able to solve the questino
@Akshita99 https://www.youtube.com/watch?v=TC6snf6KPdE
Please refer this video. It is nicely explained here.
Hope this helps 
https://ide.codingblocks.com/s/174713 sir this is my code. please check which case is not working. all test cases passed except test case 0