manas agrawal's submission of Max Mex | CodeChef