
    Given a suspicious transaction amount, determine the next possible higher amount that could be attempted by a fraudster by rearranging the digits of the original transaction value. The system needs to identify this pattern to flag potential sequential fraud attempts where criminals test increasingly higher amounts using the same digits. If no larger amount can be created using the same digits, the system should return -1 to indicate no risk of this specific pattern.
    

    
def rearrange_bigger(n):
    """
    Given a suspicious transaction amount, determine the next possible higher amount that could be attempted by a fraudster by rearranging the digits of the original transaction value. The system needs to identify this pattern to flag potential sequential fraud attempts where criminals test increasingly higher amounts using the same digits. If no larger amount can be created using the same digits, the system should return -1 to indicate no risk of this specific pattern.
    

    """
def rearrange_bigger(n):
    """
    Given a suspicious transaction amount, determine the next possible higher amount that could be attempted by a fraudster by rearranging the digits of the original transaction value. The system needs to identify this pattern to flag potential sequential fraud attempts where criminals test increasingly higher amounts using the same digits. If no larger amount can be created using the same digits, the system should return -1 to indicate no risk of this specific pattern.
    

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