Pregunta de entrevista de EY

Question from Leetcode and many on Azure