Capgemini interview question

How to use component interface to insert data?