Pregunta de entrevista de Meta

Two Leetcode Medium problems, one HashMap problem and one Queue problem.