Exadel interview question

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