Vodafone Idea Interview Question

What pointers help with How to sort an array easy way