using System;
public class Program
{
public bool isPal(string str, int start, int end)
if(start >= end)
return false;
}
return (str[start] == str[end]) && isPal(str, start+1, end-1);
public static void Main()
int start = 0;
string s = "ana";
int n = s.Length-1;
int end = n-1;
Program p = new Program();
Console.WriteLine(p.isPal(s,start,end));