Part b is quite different from part a- and the difference is important to learn. Mathematics must be very very precise in its wording- unlike science we don't have observations and experiments to fall back on. In other words, we can't just look at the real world- words are everything!
In part a it ask if, given a non-singular matrix A, there exist a matrix B such that [itex]AB^2= A[/itex]. You are right- just multiply, on the left, on both sides by [itex]A^{-1}[/itex], which exists because A is non-singular, and the equation becomes AB= I. Yes, B exists and is the inverse of A.
In part B, it asks if there exists a matrix B such that, for any non-singular matrix, A, [itex]A^2B= A[/itex]. "Any" is the crucial word there. Is there a single matrix B that is the inverse of all invertible matrices?