Smartbridge Interview Question

code in py for plaindrome