Pergunta de entrevista da empresa Meta

Asked straightforward leetcode easy and mediums.