Problem was to create an array from one input array where every element in output array is the next biggest element from that element.
Anonymous
I have answered the question but he was expecting me to solve that problem with less complexity, however, the answer purposed him was also had the same complexity as my answer had.
Check out your Company Bowl for anonymous work chats.