FDM Group interview question

create a algorithm in excel to automate drawing this shape