apple pie's submission of Equal MEX | CodeChef