In my code, my complexity is O(n) but i am still getting TLE on 3rd test case
Complexity is O(n) but still get TLE
Hey @uddeshteke
I can see u figured out the mistake urself
Marking this as resolved feel free to reopen if read 
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.