Dassault Systèmes interview question

1. pattern program