BuyHatke interview question

Basic principles of design