Create getQuestion function