BrowserStack Interview Question

Basic java programms like string anagram, with multiple approaches