Amazon Interview Question

Greedy algorithm and the Palindrome sequence