Every element is multiplied with its inverse. The identity element is its own inverse. That leaves us with $11$ elements other than identity. So, one element (except the identity element) is its own inverse. The other $10$ elements get cancelled out as they are multiplied with their respective inverse elements. So, the order of the element $\prod_{i=1}^{12}a_i$ is $2$.
Option $(B)$ is correct.