Pergunta de entrevista da empresa Meta

Leetcode Coding question from top frequency problems