Yandex Interview Question

and some algorithm questions from leet code or Hacker rank