The task is to find their comparison points by comparing a[0] with b[0], a[1] with b[1], and a[2] with b[2]. If a[i] > b[i], then a is awarded 1 point. If a[i] , then b is awarded 1 point. If a[i] = b[i], then neither person receives a point.
Function Description
Complete the function compareTriplets in the editor below.
compareTriplets has the following parameter(s):
int a[3]: a challenge rating int b[3]: b challenge rating
Return
int[2]: a score is in the first position, and b score is in the second.