You are a taxi driver on an infinite 2D grid city where roads run north-south and east-west (intersections represented as (x, y) coordinates). You start at a given location (Cab) and must reach a Destination by moving one step at a time in cardinal directions (N/S/E/W). PART 1: Given a…