CodeChef Starters 144 Solution Discussion (finished)