Diagonal Traversal of a 2D Array - Problem SolutionImplement a Python function to traverse a 2D array diagonally and return its elements