Hollow Pattern Programs

I am still confused about the Hollow Diamond Pattern program,