For this Question: Given of array of N integers, find its number of increasing subsequences modulo (10^9 + 7)
A subsequence of the given array is the array formed after removing zero or more elements from it.
It is said to be increasing when every element is greater than its previous one.First line of input contains T, the number of test cases. Each test case is of two lines.
First line of each test case contains N, the number of elements of the array.
Next line contains N integers Ai, denoting elements of the array

1 <= T <= 50
1 <= N <= 2000
1 <= Ai <= 10^9Output T lines denoting the number of increasing subsequence for every test case. 
Print the answer modulo (10^9 + 7)Sample input 1:
2
5
1 5 2 6 1
3
8 4 2

Sample output 1:
12
3

Explanation:
All increasing subsequence for test 1 are:
{1}
{5}
{2}
{6}
{1}
{1, 5}
{1, 2}
{1. 6}
{2, 6}
{5, 6}
{1, 5, 6}
{1, 2, 6}, I have written this Solution Code: 











































import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

import java.util.ArrayList;




public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader read = new BufferedReader(new InputStreamReader(System.in)) ;
        int test = Integer.parseInt(read.readLine()) ;
        while(test-- > 0) {
            int n = Integer.parseInt(read.readLine()) ;
            String[] str = read.readLine().trim().split(" ") ;
            long[] arr = new long[n] ;
            for(int i=0; i<n; i++) {
                arr[i] = Long.parseLong(str[i]) ;
            }
            long sum = 0L ;
            long[] count = new long[n] ;

            for(int i=0; i<n; i++) {
                count[i] = 1L ;
                for(int j=0; j<i; j++) {
                    if(arr[i] > arr[j]) {
                        count[i] = (count[i] + count[j]) % 1000000007 ;
                    }
                }
                sum = (sum + count[i]) % 1000000007;
            }

            System.out.println(sum);


        }
    }
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?