https://geekdad.com/2008/08/geekdad-puzzl-3-9/
GeekDad Puzzle of the Week: BadDad's Kids – Solution