Zoom Communications interview question

Coding question on Sliding Window Coding question on Topological Sort