Rajat Mittal's submission of Martingale | CodeChef