hackerrank ruby array selection problem