Dizer Corp interview question

Java code for the patients with allergies