https://adventr.co/2014/06/ruby-horsethief-in-a-day/
Ruby - Horsethief in a Day