Nagarro interview question

Java code for two strings are anagrams or not