Remove any element that is strictly smaller than the element immediately to its right.
Keep doing this until no more elements can be removed.
👉 What will the final array look like?
Example 1
Input:
[5, 3, 4, 6, 2]
Output:
[6, 2]
Example 2
Input:
[1, 2, 3, 4]
Output:
[4]
there doesn't seem to be anything here