Wrote Function to perform Modular Multiplicative Inverse