Sika interview question

Code a function calcualting the factorial Code a function return true for palindoms implement execeptions