Synopsys Interview Question

Q: Given student data with marks, return the required outputs based on conditions.