You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Lilah has a string,s, of lowercase English letters that she repeated infinitely many times.
//
// Given an integer,n, find and print the number of letter a's in the first n letters of Lilah's infinite string.
//
//
// Complete the repeatedString function in the editor below. It should return an integer representing the number of occurrences of a in the prefix of length n in the infinitely repeating string.