The inverse of p → q is:
p → q
q → p
~p → ~q
~q → ~p
p → q
q → p
~p → ~q
~q → ~p