Efficient solution for Euler #1
merge