A binary tree having a loop is known as a threaded binary tree.
Have a look at the attachment to have an idea of a threaded binary tree....

A's right child is B and B's left child is A.
Write an algorithm to find out whether the given tree is a threaded binary tree.

[attachment=879:Threaded...ary_Tree.JPG]

Look for time and space complexity.

Reply