The correct option is B g is an injective function.
Let b be an arbitrary element of B, Let g(b)=a,a∈A⇒f(a)=f(g(b))=fog(b)=IA(b)
f(a)=b
∴ For every b∈B, there exists a∈A, such that f(a)=b
So, f is surjective function
Let x,y be any two elements of B such that
g(x)=g(y)⇒f(g(x))=f(g(y)) ⇒fog(x)=fog(y)
IB(x)=IB(y)
x=y
∴g is injective function