Ancestry Interview Question

Reverse string , number , negative number , decimal numbers