Question 3
Number of pairs of students with different gender or same TownCity
Number of pairs of students with same gender or different TownCity
Number of pairs of students with the same gender and the same TownCity
The code will give an error due to incorrect return statements in lines 15 and18