Pregunta de entrevista de ByteDance

Some medium difficulty leetcode problems.