The solution of the Yandex javascript-internship's quiz