Rakuten Interview Question

Codility test - anagram problem