Vodafone Idea interview question

What pointers help with How to sort an array easy way