IntegriChain Interview Question

oops and database query palindrome code logic