Swift Code Solution on SplitClub