Tryzens interview question

Tell me how do you solved this problem in this project