Freshworks interview question

How Spring achieves DI ?