Shilp Gupta's submission of Buggy algorithm | CodeChef