This is one of an interview question which I had recently. I would like to know others perception of approach for this problem.
Question:
Yo
left = 0; right = n-1; while(left