Domanda di colloquio di ByteDance

Network related question Leetcode question (easy to medium)