add solution for post order