Traverse the array w [ ] & update positions jumps array a [ ]
for ( i = 0 ; i < n ; i ++ ) { pos . set ( w [ i ] , i ) ; filled . set ( i , true ) ; jump . set ( w [ i ] , l [ i ] ) ; a [ i ] = w [ i ] ; }