Pergunta de entrevista da empresa Databricks

Count of each 2nd digit in a 2D array.