Tiancheng Lou's submission of Ranka | CodeChef