I wrote this code to find all possible substrings of a string and store it in an array and then display the array but the count of substrings should be 15 but it\'s giving 1