Cognizant Interview Question

Many Basic coding qus like reverse of a no