Shivam Mittal's submission of Train Partner | CodeChef