https://dropi.ru/posts/test-na-logiku-zakruchennye-golovolomki-popytajtes-rasputat-vse-do-edinoj