JPMorganChase interview question

Medium level question on Strings , Valid Anagram