Pregunta de entrevista de Happy Scribe

Interview was some leetcode problems, 2 medium/hards.