Metron, Inc. Interview Question

Write a factorial function