Hexaware Technologies interview question

How to implement dipendency inversion