Oracle interview question

Leetcode question - Valid anagrams