Pergunta de entrevista da empresa Cruise

Hackerrank: Given a 2D array, increment the values as per input and then find the number of elements with maximum value