amit's submission of Count Subarrays | CodeChef