Hollow Rohombus Pattern

why is my code not passing the test even if it i running just fine on eclipse?