You have a lot of photos on your computer and you would like to sort them into three categories: small, average and large.
A photo of size W1xH1 is considered smaller than a photo of size W2xH2 if W1 < W2 and H1 < H2.
A photo is called small if it is smaller than at least one other photo, and no photo is smaller than it. A photo is called large if it is not smaller than any other photo, and there is at least one photo that is smaller than it. A photo that is neither small nor large is called average.
You are given ints W and H that describe your collection of photos. The i-th photo has size W[i]xH[i]. Return a int containing exactly three elements - the number of small photos, the number of average photos and the number of large photos in your collection, in this order.