Update MathQuestionActivity.java

Refactored code