Körber Digital interview question

Why did I use @autowired annotation