public static void Main()
long result = repeatedString("aba", 7);
Console.WriteLine(result);
string s = String.Concat(Enumerable.Repeat("aba", 5));
static long repeatedString(string s, long n) {
var repeat = (int)n/s.Length;
var remain = (int)n%s.Length;
s = String.Concat(Enumerable.Repeat(s, repeat));
s = String.Concat(s, s.Substring(0, remain));
count = s.ToList().Where(c=>c == 'a').LongCount();