Code to win www.bloc.io/ruby-warrior