Constructor for creating a QuestionAnswer instance.
Both question and solution are required.
QuestionAnswer