karan's submission of Count Subarrays | CodeChef