Project Euler #135: Same differences