Reaction $1$, proceeds via $S _{ N } 2$ mechanism. The attark of nucleophile $\left[ Nu ^{\ominus}\right.$ ] occurs from the backside and the leaving group leaves from the front side. In Reaction $2$, proceeds via $S _{ N } 1$ mechanism. Where no inversion of product takes place.