Implemented following changes :

1. Optimised the code.
2. Created constructor of quiz and question.
3. Generated all the questions and store them in instance of quiz.