This is a problem from Matrix Analysis by Horn and Johnson.
Let $A \in M_n$ be Hermitian, let $a_k$$=$det$A$[{$1$, $\dots$,$k$}] be the leading principal minor of $A$ of size $k$, $k = 1, \dots, n$, and suppose that all $a_k \neq 0$. Show that the number of negative eigenvalues of $A$ is equal to the number of sign changes in the sequence $+1, a_1, a_2, \dots, a_n$. Explain why $A$ is positive definite if and only if every principal minor of $A$ is positive. What happens if some $a_i =0?$
The hint on the book tells me to use the interlacing theorem, which is the following.
Let $B \in M_n$ be Hermitian, let $y\in \mathbb C^n$ and $a \in \mathbb R$ be given, and let $A$ $=$ $$ \begin{pmatrix} B & y \\ y* & a \\ \end{pmatrix} \in M_{n+1} $$
Then, $\lambda_1(A) \le \lambda_1(B) \le \lambda_2(A) \le \cdots \le \lambda_n(A) \le \lambda_n(B) \le \lambda_{n+1}(A)$.
However, I have not been able to solve this so far and I would greatly appreciate any solution, hint, or suggestions.