Let $K\in \mathbb{C}^{ n\times n}$ be a Hermitian matrix then find a matrix $X$ such that $X^TAX=B$ where $B \in \mathbb{C}^{p \times p}$ is a given Hermitian matrix and $p< n$.