Solid Principles Interview Questions Java