Pergunta de entrevista da empresa EPAM Systems

There were 2 coding questions . One was easy and another one was medium