determine_exercise_number function

Finds the number of the next exercise in a tutorial