Added test and example swift code for the allergies problem.