
    Design a function for the friend recommendation system that determines the next higher priority score by rearranging the digits of a user's current influence score, ensuring the new score is the smallest possible number greater than the original. The resulting score will be used to optimize the sequencing of friend suggestions in the social network's recommendation engine.
    

    
def rearrange_bigger(n):
    """
    Design a function for the friend recommendation system that determines the next higher priority score by rearranging the digits of a user's current influence score, ensuring the new score is the smallest possible number greater than the original. The resulting score will be used to optimize the sequencing of friend suggestions in the social network's recommendation engine.
    

    """
def rearrange_bigger(n):
    """
    Design a function for the friend recommendation system that determines the next higher priority score by rearranging the digits of a user's current influence score, ensuring the new score is the smallest possible number greater than the original. The resulting score will be used to optimize the sequencing of friend suggestions in the social network's recommendation engine.
    

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