some solutions to https://www.bloc.io/ruby-warrior/#/