In this problem, you are given two permutations a and b of n numbers, and you need to play a game with them! In this game, you are required to perform