InterviewBit Problems   Lexicographically largest Array : Solved