Second Next Greater Element

Company: Nexcus

Difficulty: medium