69. Diagonal of a Dot Product

Hard

Return the diagonal of the matrix product A @ B without computing the full (n, n) product first.

Implement solve(...)