RSA Security interview question

Tree traversal