IndiGo Interview Question

Q: Next greater element in the array (LeetCode Medium)