Gradient Field Matrix Computation — Coding problem | OneNoughtOne