PwC Interview Question

palindrome and binary palindrome questions