Square Matrix Determinant and Trace Evaluator - Coding problem | OneNoughtOne