Two Permutations

AtCoder - agc038_f