Meta interview question

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