no. of elements in 3sets

Vipul Sahni's image