From first, third and fifth figure the small figures present in rows change it places with adjacent figure. Similarly, from second, fourth and sixth figure the small figures present in rows change it places with adjacent figure. So, on following this pattern option figure (a) will replace the question mark.