Coding Questions on Matrix