Dsquares interview question

about dot net core and some problem solving