Could anyone give me some help on this one problem?

An n by n matrix A is called Gramian matrix if there exists a real (square) matrix B such that A=tranpose of B times B. Prove that A is Gramian matrix if and only if A is symmetric and all of its eigenvalues are non-negative.