Answer: A
Step (i) forms the tosylate at oxygen and does not touch the stereocentre. Step (ii) is a single SN2 displacement with inversion. Step (iii) retains the carbon configuration. The priority order (O/N>CX3>CHX3>H) is the same at every stage, so a single inversion changes R into S: (S)-octan-2-amine.