Added another solution and added test case to largestchessmatrix