PayU Interview Question

factorial , reverse a string