Accenture interview question

write palindrome code. and flowchart