All test cases passed except first

here is my code :- https://ide.codingblocks.com/s/622769

Hi @Coderdeep
refer this --> https://ide.codingblocks.com/s/622796

thanks but can you tell what was wrong in my approach as in the lectures by sir i have been taught like this only
Thanks

@Vaibhav277 Vaibhav277

Hi @Coderdeep
pls go through the video lecture then and tally ur code as i dont know whats taught in lecture…