Bùi Việt Dũng's submission of Minimum Good Permutation | CodeChef