503. Next Greater Element II (Medium)