For this Question: Given an integer array <strong>arr[]</strong> of size <strong>N</strong> and an element <strong>X</strong>. The task is to find and print the indices of the given element if it is present in array if not then print “<strong>Not found</strong>” without quotes. 

<strong>Note</strong>: The elements may be present more than once.The first line of input contains T, denoting the number of test cases. 
The first line of each test case contains N and X, N is the size of array and X is an element. Second line contains elements of array space separated. If not present then print "Not found" without quotes

<strong>Constraints</strong>:
1 <= T <= 100
1 <= N, X <= 10000
1 <= arr[i] <= 100000For each test case in new line you need to print all the positions where you find the X separated by space.
Assume 0-indexingInput:
2
5 6
2 3 6 5 6
4 3
2 4 6 5

Output:
2 4
Not found, I have written this Solution Code: import java.util.*;
import java.io.*;
import java.lang.*;

class Main
{
    public static void main (String[] args)throws IOException {
        BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
        int t  =Integer.parseInt(read.readLine());
        
        while(t-- > 0)
        {
            String str[] = read.readLine().trim().split(" ");
            int n = Integer.parseInt(str[0]);
            int x = Integer.parseInt(str[1]);
            int arr[] = new int[n];
             str = read.readLine().trim().split(" ");
            for(int i = 0; i < n; i++)
                arr[i] = Integer.parseInt(str[i]);
            
            
            findPositions(arr, n, x);
         }
    }
    
    static void findPositions(int arr[], int n, int x)
    {
        boolean flag = false;
        StringBuffer sb = new StringBuffer();
        for(int i = 0; i < n; i++)
        {
            if(arr[i] == x)
            {
                sb.append(i + " ");
                flag = true;
            }
              
        }
        if(flag ==true)
            System.out.println(sb.toString());
        else System.out.println("Not found");
    }
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?