CodeChef June Challenge 2014
BST