Solving the classic "aaaabbbcca" coding challenge I've seen many versions of this problem in coding interviews, so I decided to solve it here, just for fun. The problem goes like this: Input: "aaaabbbcca" Output: