Pregunta de entrevista de Exadel

Asked solve task like on LeetCode, Codewars with one of two programming languages.