naveen's submission of Perfect Subarrays | CodeChef