Given a two dimensional array of strings responses, where each responses[i] represents a collection of responses.
A response is counted at most responses[i], even if it appears multiple times within that same list.
Return the response string that appears in the maximum number of lists. If there is a tie, return the lexicographically smallest response string.
Constraints:
responses.length
responses[i].length
responses[i][j].length
responses[i][j] consists of only lowercase English letters
Given a two dimensional array of strings responses, where each responses[i] represents a collection of responses.
A response is counted at most responses[i], even if it appears multiple times within that same list.
Return the response string that appears in the maximum number of lists. If there is a tie, return the lexicographically smallest response string.
Constraints:
responses.length
responses[i].length
responses[i][j].length
responses[i][j] consists of only lowercase English letters