Revature interview question

How to write a construct?