CodeChef Starters 131 Solution Discussion (finished)