Compound 'X' in the following reaction is

From the NSE 2018 · NSEC · Chemistry paper. Try it, check your answer, then read the worked solution below.
Compound 'X' in the following reaction is

Try it yourself first, then check your working against this.
Worked solution
Work backwards from adipic acid, :
Cyclohexene would give hexanedial (no methyl ketone); (B) and (D) give different fragments.
(C)
Concepts used: ozonolysis, haloform reaction
Every past question tagged to the same part of the syllabus, with solutions.
All NSE (Olympiad) questions on Hydrocarbons · All NSE (Olympiad) questions on Aldehydes and Ketones
Past questions on the same topic (Alkenes), each with a worked solution.
Timed, in the real format, and marked the moment you submit.