Fix question 1 to not rely on printf and buffer strings.