Zhenyang Dai's submission of Save The Princess | CodeChef