This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] $3$ mol $HI$ forms from $1.5$ mol each of $H_2$ and $I_2$, leaving $4.5-1.5=3$ mol each. $\Delta n=0$, so $K=\frac{[HI]^2}{[H_2][I_2]}=\frac{3^2}{3\times3}=1$. Answer: 1.