Terralogic Interview Question

Matrix and Sorting based questions