Meta Interview Question

Matrix problem and string manipulation