Function to find the queen closest to king in an attacking position
int dis ( vector < int > ans , vector < int > attacker ) { return abs ( ans [ 0 ] - attacker [ 0 ] ) + abs ( ans [ 1 ] - attacker [ 1 ] ) ; }