Code snippet for chi square test for comparision across genders.