it take more than 0(n) time i don’t why are you saying it take 0(n) time complexity because we not only iterate
array element but also we do extra work on strip (by while not loop )
when i submit this approach geeksforgeeks then my code not submit it say you take more time
can have any approach which solve this question in 0(N)
time