Rubywarrior Solution