First code sample

Recursive function written for a job interview