Matching {x} Repetitions

Problem Name:
Matching {x} Repetitions
Site:HackerRank
Links:
Tags:
Problem setters: