def delta_ord(letter):
    """
    This will return an character number in alphabet and same for numbers.
    The order number starts from 0.
    Ex: for input '5' will return '5'-'0' = 5
        for input 'C' will return 'C'-'A' = 3
    """
    if (letter>='0') & (letter<='9'):
        return ord(letter)-ord('0')
    if (letter>='A') & (letter<='Z'):
        return ord(letter)-ord('A')
    return -1