completed medium_calculate_letter_grade solution