static void Main(string[] args) { string input = "ABC"; StringProcessor sp = new StringProcessor(); sp.Permute(input, 0, input.Length - 1); Console.ReadKey(); }