Flow Traders Interview Question

Solve a medium leetcode problem