Codeforces Round #738 CodeChef Starters 8 Solution Explanations (finished)