Microsoft Interview Question

How to find if there is a cycle in a tree?