VIAVI Solutions Interview Question

Live coding( check is a string a palindrome with extra parameters(ignore case and ignore spaces)