(technical interview)
You have two arrays: A and B. A contains ints and B has pairs: (element from A, the number of elements that are larger than that element and to the right of it in A).
for example:
A = [4,3,5]
B = [(5,0), (3,1), (4,1)]
Given array B, recreate array A