Scantron Interview Question

I was able to tell them the pseudo code for Anagram