EY interview question

Oops concept data structure Angular material