Mark Kornejchik's submission of Max Mex | CodeChef