Adobe Interview Question

Find Next Largest Element in Array