Solution for Euler Problem