AiSight (CA) interview question

leetcode anagram pairs question (medium).