Pregunta de entrevista de Beyondsoft Group

leetcode easy and medium question