You are given n cities on a Cartesian plane.For each city i, you know: For every queried city q, return the name of the nearest city that shares either the same x or the same y coordinate with q. If no other city shares the same x or the same y with q, return “NONE”….