HBI Solutions interview question

Leetcode challenge - Unique length-3 palindromic subsequence.