
    Given a suspicious transaction amount, develop a fraud detection function that identifies the next possible fraudulent charge by finding the smallest number larger than the original amount using the same digits. This pattern recognition helps detect when fraudsters incrementally adjust transaction amounts to bypass security thresholds while keeping the same digits to avoid obvious detection.
    

    
def rearrange_bigger(n):
    """
    Given a suspicious transaction amount, develop a fraud detection function that identifies the next possible fraudulent charge by finding the smallest number larger than the original amount using the same digits. This pattern recognition helps detect when fraudsters incrementally adjust transaction amounts to bypass security thresholds while keeping the same digits to avoid obvious detection.
    

    """
def rearrange_bigger(n):
    """
    Given a suspicious transaction amount, develop a fraud detection function that identifies the next possible fraudulent charge by finding the smallest number larger than the original amount using the same digits. This pattern recognition helps detect when fraudsters incrementally adjust transaction amounts to bypass security thresholds while keeping the same digits to avoid obvious detection.
    

    """
    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