Akash Jain's submission of Max Mex | CodeChef