Flipkart interview question

Greedy, 2 pointers, strings, oops, sorting