You have to count how many substrings of a given string starts and ends with the same letter. You cannot use in your code the following: for,while,sum,map,r