Configurable grading strategy for problems

Configurable grading method for problems with multiple attempts