Nirvan Singhania's submission of Martingale | CodeChef