Palindromic Pair Count

Company: Microsoft

Difficulty: medium