Cloudbeds Interview Question

Describe Dependency Injection pattern, its value for the architecture and why it was invented