Pergunta de entrevista da empresa Crossover for Work

A code sample to determine output result.