Count substrings with same first and last characters
Given a string s consisting of lowercase characters, the task is to find the count of all substrings that start and end with the same character. Examples : Input : s = "abcab"Output : 7Explanation: The substrings are "a", "abca", "b", "bcab", "c", "a", "b".Input : s = "aba"Output : 4Explanation: The