PointStar interview question

The Technical lead asked basic coding logics like palindrome , factorial