CodeChef Starters 120 Solution Discussion (finished)