Added "code golfed" solution to Q1 of preliminary