Ad
  • Custom User Avatar

    I dont understand how the answer is codewarsxxxx. For the 1st and 2nd index(0 index strings), the number of strikes would be 7 and 6, respectively. Hence, '9' and '6' in reinforces[0] will be replaced by 'a' and 'a', respectively giving caaewarsxxxx as the result. What am I missing?