Matching {x, y} Repetitions

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