Pergunta de entrevista da empresa STL Digital

Question was simple and easy