co [ i ] is going to store counts of consonants from str [ len - 1 ] to str [ i ] . vo [ i ] is going to store counts of vowels from str [ len - 1 ] to str [ i ] .
int [ ] co = new int [ len + 1 ] ; int [ ] vo = new int [ len + 1 ] ;