Jeffrey Jiang's submission of A Story with Strings | CodeChef