Magic Leap Interview Question

Identify and print the axiom and rules from a tree.