Yandex interview question

Palindrome, Anagrams, binary search