Tridiagonal Solutions interview question

Quant questions