Distinct Palindromic Pieces Tally

Company: KodNest_29sep

Difficulty: medium