The Mars Rovers problem Solved using Ruby