Please tell whats wrong with the code

Its not working

@anuranjan8319918906,
You can simply find inverse using this:
a^{-1}%p = a^{p-2}%p