HackerRank Grading Students - Solution Walkthrough (JavaScript)