[ 0 1 2 3 4 5 ] represents < 0 1 2 3 4 5 > [ 0 0 0 0 0 0 0 ] represents < 6 5 4 3 2 1 0 > [ 0 ] represents < 0 > [ 0 0 2 2 2 2 2 ] represents < 1 0 6 5 4 3 2 > [ 0 1 1 0 4 2 0 6 4 4 7 1 ] represents < 6 11 3 0 5 9 8 2 10 1 7 4 > ----------------------------------------------------------------------- 2012 University of Scranton High School Programming Contest Above is output corresponding to the following input for Problem 4: Permutation Representation Conversion 5 6 0 1 2 3 4 5 7 0 0 0 0 0 0 0 1 0 7 0 0 2 2 2 2 2 12 0 1 1 0 4 2 0 6 4 4 7 1