Read about this challenge for a job interview, pretty simple.  My approach