Dependency inversion and dependency injection
Dependency inversion is a rule about direction: the class that holds the important logic defines the interface it needs, and the classes with the details implement it. Dependency injection is a way of wiring: a class receives the objects it works with instead of creating them. Interviewers want to hear that you can tell the two apart and show both in your code.
A "take a number" machine at the bakery
Think of a busy bakery with two serving counters, one for bread and one for cakes. A small machine by the door hands out numbered paper tickets. Both counters call numbers from that one machine, so no two customers ever hold the same number.
The staff at the counters never think about how the machine works. They only need one thing from it: the next number. The owner chooses the machine, sets it up before the shop opens and tells both counters to use it. When she later swaps the paper roll for a screen that shows the numbers, the counters work exactly as before.
In code, this page uses a phone repair shop. Phones are booked in at the shop's counter and through its website, and every job needs a number that is never used twice. The two serving counters are two RepairDesk objects. "The next number" is the JobNumbers interface, which the desk defines in its own terms. The paper-roll machine is SequentialJobNumbers, one class that implements it. The owner who sets up the shop each morning is Main, the one place where objects are created and connected.