Sysdig interview question

Coding test: palindrome