Pass Both Tests
exams has columns name, math and reading. A student passes a test with a score of at least cutoff. Return the names of students who passed both tests, in the order they appear.
Example 1
exams {"name":["a","b","c"],"math":[90,50,70],"reading":[60,80,70]}
cutoff 60
returns ["a","c"]
Only a and c reach 60 in both.
Constraints
- The result may be an empty list
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.