The benefit would be a smaller number of iterations. With this one loop, the number of iterations is `2 * width + 2 * height - 4`, but with two loops it would be `width + height` iterations. I think the code might be clearer as well.