In the following reaction sequence, the correct structure(s) of X is (are)

From the JEE Advanced 2018 · Paper 1 paper. Try it, check your answer, then read the worked solution below.
In the following reaction sequence, the correct structure(s) of X is (are)

Try it yourself first, then check your working against this.
Worked solution
Count the inversions.
Three inversions give an overall inversion at C-1. The methyl-bearing C-3 is untouched.
Work backwards. The product is trans-1-azido-3-methylcyclopentane, (1R,3R). So X has the opposite configuration at C-1 and the same at C-3: (1S,3R)-3-methylcyclopentan-1-ol. That is the cis alcohol.
Structure (B) is (1S,3R). (D) is its enantiomer (1R,3S), which would give the enantiomeric azide.
(B)
Concepts used: PBr₃ inverts, Finkelstein inverts, azide SN2 inverts, three inversions overall
Every past question tagged to the same part of the syllabus, with solutions.
All JEE Advanced questions on Haloalkanes and Haloarenes · All JEE Advanced questions on Isomerism
Past questions on the same topic (SN1 and SN2), each with a worked solution.
Timed, in the real format, and marked the moment you submit.