Oh lawd this is ugly and janky.  Not how how this worked.  Will look at some other solutions and compare.
Oh lawd this is ugly and janky.  Not how how this worked.  Will look at some other solutions and compare.

coingraham/codefights