HackerEarth Mehta And Subarrays problem solution - TheCScience