Finding the Longest substring in a string that is a palindrome

Hi, Recently my friend asked me this question so gave it a try and got it. So this is how the code goes: using System; using System.Collections.Generic; using System.Linq; namespace SubStringPalindrome { class Program { static int maxLength; static void Main(string[] args) { string inputString = “ootntannanitindennedadinidadeleveledaibohphobiatattarrattat”; string currentStr = string.Empty; List<string> listOfPalindromes = new […]