Build a Palindrome Checker - Build a Palindrome Checker

I think there is some issue in the looping part but I have never written something like this before so I am not confident.

My idea is very simple-

check for each index if any of the elements from the symbols array is present in the input text’s array.

Please guide me.