Infosys interview question

Palindrome code by sharing screen