PREEORDERTREE from the INOI Practice Server...

How should I attack this problem…is the answer not the Kth permutation of the 1st N letters?>!>!>!?

No, it is not. Think recursive.