Databricks Interview Question

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