PointStar Interview Question

The Technical lead asked basic coding logics like palindrome , factorial