Key Tech interview question

Diodes circuit question and transistor question.