Trung Nguyen's submission of Minimize Magic | CodeChef