Created for loop to print questionText and questionAnswer