Binary Tree traversal Inorder & preorder

https://hack.codingblocks.com/contests/c/537/482
Unable to understand the output format
Please explain it.