HCLTech Interview Question

factorial number , magic number , reverse string, print the alternative string