my solutions for ruby warrior