Chaithanya Shyam's submission of Scalar Product Tree | CodeChef