All test cases passed except first

here is my code :-

Hi @Coderdeep
refer this -->

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

@Vaibhav277 Vaibhav277

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