You have 2017 cards numbered 1, 2, 3, ..., 2017 in the same order. In each move, you can change the order of two adjacent cards. (For example, if you had only four cards arranged as 1234, what you could achieve in one move would be 2134, 1324, or 1243.)
What is the minimum number of moves required for the above cards to be arranged backwards as 2017, 2016, ..., 2, 1?