Solution to a simple assignment I was given for one of my job interviews