Feedback for ZOOZ problem

Problem Link: ZOOZ Problem - CodeChef

Feedback

/* package codechef; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner read=new Scanner(System.in);
		int t=read.nextInt();
		while(t-->0)
		{
		    int n=read.nextInt();
		    String str=Integer.toBinaryString((int)Math.pow(2,n-1));
		    if(n>3)
		    str= "0"+str.substring(1,str.length()-3) +"010";
		    else
		    str= "010";
		    System.out.println(str);
		}
	}
}

Respected team,
I have solved ZOOZ problem recently.in this you stated that any combination of subsequence is acceptable. But my sequences are not getting accepted by the compiler .can you please resolve this issue. hoping a positive response from you. THANK YOU.