Amazon interview question

Greedy algorithm and the Palindrome sequence

Amazon Interview Question: Greedy algorithm and the Palindrome sequence | Glassdoor