Viasat interview question

Implement factorial and the Fibonacci sequence