Recall the relation between a square matrix \(B\), its adjoint \(A\), and their determinants:
\[
|A| = |\text{adj} B| = |B|^{n-1}
\]
where \(n\) is the order of the matrix, here \(n=4\).
Given,
\[
|A| = 125, \quad n=4
\]
So,
\[
125 = |B|^{4-1} = |B|^3
\]
Take cube root on both sides:
\[
|B| = \sqrt[3]{125} = 5
\]