BrowserStack Interview Question

Anagram Pairs from an Array of strings