Pergunta de entrevista da empresa Meta

Ask to solve a leetcode hard-level problem