Pergunta de entrevista da empresa ACS Solutions

One coding question and few other puzzels