Persistent Systems Interview Question

Told me to write a code for sorting the matrix. Then 2 basic dsa questions and before that, we spend some time discussing my dbms project.