Answer
The nucleophile -NH2 attacks the top carbon and Cl- leaves. Originally, the top carbon has S configuration. The product should have R configuration because SN2 reaction inverts the configuration.
Work Step by Step
The -NH2 pushes Cl- out and D comes to the front while NH2 stays in the back. See image.