Code exercise for Outpace technical interview, May 2014