Microsoft interview question

Basic oop questions, a standard dp problem

Glassdoor | Glassdoor