http://www.nxcoding.com/archives/leetcode-daily-2302-count-subarrays-score-less-than-k