HackerEarth Gaurav And Sub-array problem solution - TheCScience