Step 3: Implement buildDistributionArray() (2 points)
Implement the buildDistributionArray() function to take an array of scores, built by parseScores(), as an argument. The function should return a grade distribution array of length 5.
The function should loop through the scores array and tally up the number of A, B, C, D, and F scores using the standard scoring system (90 and above = A, 80-89 = B, 70-79 = C, 60-69 = D, 59 and below = F). The grade totals should be stored in a distribution array where the number of As is the first number, number of Bs is the second number, etc.
Ex: buildDistributionArray(["45", "78", "98", "83", "86", "99", "90", "59"]) should return [3, 2, 1, 0, 2].
buildDistributionArray() should return [0, 0, 0, 0, 0] when the scoresArray argument is an empty array.