FDM Group Interview Question

create a algorithm in excel to automate drawing this shape