Meta Interview Question

Traverse and print a matrix in specific pattern(diagonally) and Find common parent in binary tree(NOT BST).