Logical interview question on print a given pattern in PHP

Published --