added euler_173
faster solution