SurveySparrow interview question

Write a function to print grade based on student marks.