Ted Manahan's solution to Sr. Software Engineer challenge.