Ship Global interview question

Print this pattern in php