Pregunta de entrevista de Roblox

Two easy-to-medium LeetCode coding questions in one hour.