Infosys interview question

Create the constructor types of it ..