get products of all ints except at index

Write a function that takes an array of integers and returns an array of
the products.