Question d’entretien chez Yandex

and some algorithm questions from leet code or Hacker rank