Help me in solving FIGBOT problem

My issue

Can i know the 2nd test cases of FIGBOT problem??

My code

import java.util.*;
import java.lang.*;
import java.io.*;

class Codechef
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();
        while(t-- > 0){
            int n = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            sc.nextLine();
            String str = sc.nextLine();
            
            int x1 = 0;
            int y1 = 0;
            for(char r : str.toCharArray()){
                // char r = str.charAt(i);
                if(r == 'U'){
                    y1++;
                }
                if(r == 'D'){
                    y1--;
                }
                if(r == 'R'){
                    x1++;
                }
                if(r == 'L'){
                    x1--;
                }
            }
            x = Math.abs(x1-x);
            y = Math.abs(y1-y);
            
            if((x+y) == n){
                System.out.println("Yes");
            }
            else{
                System.out.println("No");
            }
        }
	}
}

Problem Link: FightBots Practice Coding Problem