Ruby Puzzle

Score: 0
Target: 1000