def _get_char_code(string, position):
    """Return an int representation of the character of `string`
    in position `position`. E.g.: string[position]. If the position
    doesn't exist in the string, return -1.
    :return: an integer representing a position in a string."""
    return ord(string[position]) if position < len(string) else -1