Upstox Interview Question

Leetcode Rotten oranges question (medium)