apple pie's submission of Maximum Trio | CodeChef