Update the code for the 'GetNumbers' method to pass the test