Ternary palindromes

Problem Name:
Ternary palindromes
Site:HackerEarth
Links:
Tags:
Problem setters: