Question from the Ruby (legacy) test

Ruby: what is the output of the following code?