Getting Fanout Cone intersection and printing of the gates