Pregunta de entrevista de AppLovin

Had a leetcode medium problem