Micron Technology interview question

Write a code for Constructor