Problem 11 of eular project