Programming tips October 13th 2024 Get alphabetical of each letter of word User ASCII to get the index of every word 12345678910class Solution { public int[] getOrder(String word) { // only lowercase letters int[] letter_array = new int[26]; for(int i=0;i<word.length();i++) { letter_array[word.charAt(i) - 'a']++; } return letter_array; }} 12345678910class Solution { // include uppercase letters public int[] getOrder(String word) { int[] letter_array = new int[60]; for(int i=0;i<word.length();i++) { letter_array[word.charAt(i) - 'A']++; } return letter_array; }}