Chaithanya Shyam's submission of The Legend | CodeChef