Grice's submission of On Graphs, Probability Theory and Cakes | CodeChef