Driver Code
public static void main ( String [ ] args ) { int [ ] king = { 2 , 3 } ; int [ ] [ ] queens = { { 0 , 1 } , { 1 , 0 } , { 4 , 0 } , { 0 , 4 } , { 3 , 3 } , { 2 , 4 } } ; List < List < Integer > > ans = findQueens ( queens , king ) ; print ( ans ) ; } }