Given 2D string of restaurant names, return max occuring names
input:
{ {"a", "b", "c"}, {"a", "c", "d"}, }
output: {"a", "c"}
Explain: "a", "b" occured twice[tie] in the input. if no tie, then just return one with max.
If the shape of each row is not same, return empty array.
Follow up: While calculating vote or score, include weight, for example, "a" has weight 3, "b" has weight 2, etc for 1st row, similarly for second row.
String[] getRestaurentWithMaxVotes(String[][] res){}