solution for round 268 div 2