Get an ASCII indexes sequence for a given character array.
letters_to_idx(str)
str
the character array.
letters_to_idx(c('a','b','c','a'))