Given a sorted array of integers. For each index , find the number of elements in the array that lie between and inclusive.
The first line contains the size of array . The second line contains integers, each ranging from to , in sorted order.
Print integers. For each index of the array, print the number of elements lying between and inclusive.