SurveySparrow Interview Question

Write a function to print grade based on student marks.