Pergunta de entrevista da empresa Smoothstack

It was a coding interview.