Clari Interview Question

Leetcode - next larger node in the linedlist