InterviewBit Problems   Rearrange the array : Solved