Learn/C++/C++ Beginner/Loops & Repetition/Checkpoint: Loops/Stats and First MatchStats and First MatchChallenge on lesson: Checkpoint: LoopsInstructionsCodeOutputImplement total(scores) (sum of all elements), average(scores) (0 when empty), and first_below(scores, limit) returning the INDEX of the first element below limit, or -1 if none.Difficulty: beginnerSubmitPress Submit to check your solution.Back to lesson: Checkpoint: Loops