Kevin Sun's submission of ABCD | CodeChef