You are given a sequence A1,A2,…,AN and you have to perform the following operation exactly X
times: Choose two integers i and j such that 1≤i