AICS interview question

Count Sub Arrays with Fixed Bounds