public bool Execute(string input) { if (input.Length < 3) { return(true); } for (int i = input.Length - 1; i >= 2; i--) { if (Roman.IsSmaller(input[i - 1].ToString(), input[i].ToString()) && Roman.IsSmaller(input[i - 2].ToString(), input[i].ToString())) { Console.WriteLine("SingleSubtraction Rule has been violated"); return(false); } } return(true); }