Add Swift solution to problem 1