-= Day 3: Bush Salesman =-
A Bush Salesman has a job for you: they want your help with their sales They have a list of bushes they want to sell, and they want you to check how many of them can be sold.
The list of bushes (your puzzle input) consists of a series of bushes, each represented by a color.
The color of a bush is represented by three numbers, each ranging from 10 to 99.
The first number represents the amount of red in the bush, the second number represents the amount of green, and the third number represents the amount of blue.
Each number is separated by a comma.
You could say that the color of a bush is an RGB value. (although the range is 10 to 99 instead of 0 to 255)
For example:
Input:
10,20,30
20,10,30
30,20,10
10,50,10
50,10,50
10,20,30
This input has 6 bushes, some of which may share the same color.
The salesman wants to know what is the most common color in the list of bushes.
In the example above, each bush is unique, except for the first and last bush, which are the same color. The answer here is 10,20,30
.
Which color appears most frequently in the full list? (your answer must be the full color separated by commas and no spaces)