Infosys Interview Question

Create the constructor types of it ..