CodeChef Starters 127 Solution Discussion (finished)