Scaling a Matrix by a Constant Factor — Coding problem | OneNoughtOne