input - "sasank" output - {'s', 'a', 'n', 'k', 'aa', 'ss', 'sas', 'asa' ,'saas', 'assa','aka', 'ana', .......}
we can select characters from any position of a string and combine to form a palindromic string.I have solved palindromic substring problem but unable to develop a logic for this program.