Tech Mahindra Interview Question

Is Anagram, Java 8, OOPS