Pregunta de entrevista de EPAM Systems

Two was coding question at the time of interview, asked on java, C++ and Python