The algorithm below is used to convert the "below matrix" to "after matrix". Find the "before matrix" given the "after matrix".