
    Write a function to determine if a customer's financial risk score follows the bank's special validation rule, where the score must be exactly one less than twice its reverse digits to qualify for expedited loan processing. For example, if a customer's risk score is 847, check if it equals one less than twice its reverse (748).
    

    
def rev(num):
    rev_num = 0
    while num > 0:
        rev_num = rev_num * 10 + num % 10
        num = num // 10
    return rev_num

def check(n):
    """
    Write a function to determine if a customer's financial risk score follows the bank's special validation rule, where the score must be exactly one less than twice its reverse digits to qualify for expedited loan processing. For example, if a customer's risk score is 847, check if it equals one less than twice its reverse (748).
    

    """
def rev(num):
    rev_num = 0
    while num > 0:
        rev_num = rev_num * 10 + num % 10
        num = num // 10
    return rev_num

def check(n):
    """
    Write a function to determine if a customer's financial risk score follows the bank's special validation rule, where the score must be exactly one less than twice its reverse digits to qualify for expedited loan processing. For example, if a customer's risk score is 847, check if it equals one less than twice its reverse (748).
    

    """
    return 2 * rev(n) == n + 1