
    At a busy urban intersection, you need to determine the next achievable higher traffic flow rate by reconfiguring the existing lane assignments, where the current flow rate is represented as a number with each digit indicating the flow through individual lanes. Write a function that takes the current lane-wise traffic flow rate and returns the next possible higher flow rate that can be achieved by rearranging the lane assignments while using the same set of flow values.
    

    
def rearrange_bigger(n):
    """
    At a busy urban intersection, you need to determine the next achievable higher traffic flow rate by reconfiguring the existing lane assignments, where the current flow rate is represented as a number with each digit indicating the flow through individual lanes. Write a function that takes the current lane-wise traffic flow rate and returns the next possible higher flow rate that can be achieved by rearranging the lane assignments while using the same set of flow values.
    

    """
def rearrange_bigger(n):
    """
    At a busy urban intersection, you need to determine the next achievable higher traffic flow rate by reconfiguring the existing lane assignments, where the current flow rate is represented as a number with each digit indicating the flow through individual lanes. Write a function that takes the current lane-wise traffic flow rate and returns the next possible higher flow rate that can be achieved by rearranging the lane assignments while using the same set of flow values.
    

    """
    nums = list(str(n))
    for i in range(len(nums) - 2, -1, -1):
        if nums[i] < nums[i + 1]:
            z = nums[i:]
            y = min(filter(lambda x: x > z[0], z))
            z.remove(y)
            z.sort()
            nums[i:] = [y] + z
            return int(''.join(nums))
    return False