Solution for PreorderPerusal