Zhang Yide's submission of Train Partner | CodeChef