Задачи JavaScript. Codewars. Sleigh Authentication

Codewars, задача 8-го уровня: аутентификация саней.