coder_penguin's submission of Sereja and Tree 2 | CodeChef