Adithya interview question

One was sorting using three pointer