Help me in solving STJ09 problem

My issue

I don’t understand the problem

My code

import java.util.Scanner;
class Codechef
{
	public static void main (String[] args)
	{
		Scanner read = new Scanner(System.in);
		int t = read.nextInt();
		for(int i=0; i<t; i++)
		{
    		int x = read.nextInt();
    		String s = read.next();
    		// Update the code below to solve the problem

    		
		}
	}
}

Learning course: Solve Programming problems using Java
Problem Link: Practice problem - World Chess Championship Practice Problem in Solve Programming problems using Java - CodeChef

Two people played 14 games. A win means 2 points, a draw means 1 point, and losing means 0 points.

Each result of each of the 14 games is represented in the string made out of “C”,“N” and “D”.

You are asked to determinate who wins. And based on that, how much money will win Carlsen.