Tripadvisor Interview Question

I cant recall fully, it was a string manipulation problem.

Interview Answer

Anonymous

Oct 6, 2017

Using one for loop, but I spent a lot of time figuring out the bound index (always had issue with outOfBound)