This is a stub for the problem at http://www.geeksforgeeks.org/sort-array-according-order-defined-another-array/