I was doing a question from a practice exercise on the topic of elimination reactions and alkene synthesis. It is shown below:
I predicted that the product would be 1,2-diiodo-4-methylcyclohexane because I thought the reaction conditions favoured substition with iodide via the $\ce {S_N2}$ mechanism. Firstly, iodide is a rather good nucleophile and secondly, the substrate is a secondary alkyl halide. Even if it was not $\ce {S_N2}$, I would expect perhaps $\ce {S_N1}$ since iodide is a rather weak base and the conditions do not seem to favour elimination. However, the answer provided is very interestingly, 4-methylcyclohexene. Would someone kindly enlighten me on where I went wrong?