Epic Interview Question

code in a language of your choice