Solution for euler 16