using System.Collections.Generic;
public static void Main()
var testCases = GetTestCases();
foreach (var tc in testCases)
tc.SumbitAnswer = GetDupes(tc.TestCaseString);
var rightWrong = "Wrong";
if (tc.SumbitAnswer == tc.RightAnswer) {
Console.WriteLine(rightWrong + " -- TestCase: " + new string(tc.TestCaseString) + " Your Answer: " + tc.SumbitAnswer + " Right Answer: " + tc.RightAnswer);
public static int GetDupes(char[] input) {
public static List<TestCase> GetTestCases() {
var returnVal = new List<TestCase>();
tc.TestCaseString = "s".ToCharArray();
tc.TestCaseString = "aba".ToCharArray();
tc.TestCaseString = "abA".ToCharArray();
tc.TestCaseString = "mrRnrRm".ToCharArray();
tc.TestCaseString = "zzzopze".ToCharArray();
tc.TestCaseString = "zZzZzZzZzZ".ToCharArray();
tc.TestCaseString = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYz".ToCharArray();
public char[] TestCaseString { get; set; }
public int SumbitAnswer { get; set; }
public int RightAnswer { get; set; }