Transamerica interview question

Star method