Microsoft interview question

Implement a class based on parameters.