
    In a fleet management system with sorted delivery vehicle IDs, where each vehicle is typically assigned to multiple routes throughout the day, write a function to identify the single vehicle that is currently assigned to only one route. The vehicle IDs are stored in a sorted array where every ID appears multiple times except for one unique ID that needs to be found for immediate route optimization.
    

    
def search(arr):
    """
    In a fleet management system with sorted delivery vehicle IDs, where each vehicle is typically assigned to multiple routes throughout the day, write a function to identify the single vehicle that is currently assigned to only one route. The vehicle IDs are stored in a sorted array where every ID appears multiple times except for one unique ID that needs to be found for immediate route optimization.
    

    """
def search(arr):
    """
    In a fleet management system with sorted delivery vehicle IDs, where each vehicle is typically assigned to multiple routes throughout the day, write a function to identify the single vehicle that is currently assigned to only one route. The vehicle IDs are stored in a sorted array where every ID appears multiple times except for one unique ID that needs to be found for immediate route optimization.
    

    """
    n = len(arr)
    XOR = 0
    for i in range(n):
        XOR = XOR ^ arr[i]
    return XOR