Function to find the minimum number of required such that adjacent smaller elements gets less number of prizes
static int minPrizes ( int arr [ ] , int n ) { int [ ] dpLeft = new int [ n ] ; dpLeft [ 0 ] = 1 ;