TikTok Interview Question

Implement stacks, streaming median, and upward path sum