Pergunta de entrevista da empresa PerBlue

Two coding questions close to leetcode easy problems