Pergunta de entrevista da empresa ByteDance

Some medium difficulty leetcode problems.