string str = "MADAM"; // 5 uzunluk
            bool flag = true;
            for(int i = 0; i < (str.Length-1) / 2; i++) //4 dahil
            {
                for(int j = str.Length - 1; j > 2; j--) 
                {
                    if(str[i] != str[j])
                    {
                        flag = false;
                        break;
                    }
                }
                if(flag == false)
                {
                    break;
                }
            }
            Console.WriteLine(flag);
           /* string str = "MADAM";
            bool flag = true;
            for (int i = 0; i < (str.Length - 1) / 2; i++)
                if (str[i] != str[str.Length - i - 1])
                    flag = false;
            if (flag) Console.WriteLine("Palindrome");
            else
                Console.WriteLine("Not palindrome"); */
//Nerede hatam var acaba true dönmesi lazım. 2.kod doğru olan 1.kod benim kendi yazdığım