Yandex interview question

Find an unusual undefined behaviour in my own code