Pregunta de entrevista de Meta

Leetcode Coding question from top frequency problems