Pergunta de entrevista da empresa Tyemill

Easy leetcode question + design question