[Codility] Added solution to count bounded slices using rmq.