Pergunta de entrevista da empresa AppLovin

Had a leetcode medium problem