Adobe interview question

Find Next Largest Element in Array