Hexaware Technologies interview question

Q: Factorial,Fibonacci Series and get a string from user program.