Function to find if ( i , j ) is a valid cell for the knight to move and it exists within the chessboard
bool isSafe ( int i , int j , int n , vector < vector < int > > & Board ) { return ( i >= 0 and j >= 0 and i < n and j < n and Board [ i ] [ j ] == 0 ) ; }