Consider a file that is being read using a generator functio…
Consider a file that is being read using a generator function. The file contains information about the scores of students on an exam and their majors. For which of the following problems can we not solve using a generator function, without any additional data structures?