More efficient answer to day 2 problem 2