Update problem 4

Remove the array and only assign a palindromic product to the variable d if it's higher than previous palindromic products.