Morgan Stanley Interview Question

The coding question was finding word anagrams.