Dassault Systèmes interview question

How to upload file using robot class functions. How to fetch data from excel sheet. They asked me to write a code for given pattern to print.