Applied Materials Interview Question

Writing a class in java for implementing matrix with add method between 2 matrices.