Solution for 2014-1B-a: The Repeater

- Would have liked to optimize the final loop but it works by just
testing all cases.