Pergunta de entrevista da empresa TechGig

Coding challenge to solve two problems