Solve temperatures task at #codingame