Update changeQuestion function to measure array.length instead of array.size