Two parallel arrays hold names and their scores: position i in one matches position i in the other. Fill in passingNames so that it returns an array of the names whose score is at least threshold.
Count first to size the result array, then fill it. The program prints Ada and Bo.