My attempt at the Subset Sum code challenge