tushar gupta's submission of Machine | CodeChef