Question from the Ruby test

Which of the following Ruby code blocks will print 1, 2, 3?