Pregunta de entrevista de Meta

Three straightforward leetcode style questions.