NQueensChallenge Problem

My output of second test case is also 2680 .I checked on eclipse.But in the coding block IDE itshows TLE

yes.use optimzed solution