Amazon interview question

How to create an interface based on an example DUT