Arnav Banerjee's submission of Subsegment Sum | CodeChef