King and his Quest | CodeChef