LeetCode 242. Valid Anagram Solution Explained - Java