public void TestMethod3()
        {
            var Input_queries = new int[] { 7, 5, 5, 8, 3 };
            var Input_m       = 8;
            var Expected      = new int[] { 6, 5, 0, 7, 5 };
            var Actual        = QueriesOnAPermutationWithKey_1409.ProcessQueries(Input_queries, Input_m);

            CollectionAssert.AreEqual(Expected, Actual);
        }
        public void TestMethod2()
        {
            var Input_queries = new int[] { 4, 1, 2, 2 };
            var Input_m       = 4;
            var Expected      = new int[] { 3, 1, 2, 0 };
            var Actual        = QueriesOnAPermutationWithKey_1409.ProcessQueries(Input_queries, Input_m);

            CollectionAssert.AreEqual(Expected, Actual);
        }