CodeChef Starters 126 Solution Discussion (finished)