+ problem #214 (brute-forced)
problem #214 optimized