author come stre s consist n lowercase Latin lettersYou give permutation index necessary equal p q length n Recall permutation array length n contain integer 1 n exactly onceFor 1 n1 follow property hold sp_i le sp_i 1 sq_i le sq_i 1 it mean write character s order permutation index result string sort nondecrease orderyour task restore string s length n consist k distinct lowercase latin letter suit give permutationsif multiple answer print