my answer to ruby warrior