Ancestry interview question

Reverse string , number , negative number , decimal numbers