you give array n element your perform follow operation n time Select index xyz 1 leq x y z leq n replace a_x a_y a_z after operation a_x need 1018your goal result array nondecrease if multiple solution output if impossible achieve report