Devesh Agarwal's submission of Billiards | CodeChef