D. Very Different Array Codeforces