Pergunta de entrevista da empresa Meta

Leetcode questions at pressure is hard to solve