NTT DATA interview question

How to create beans in Spring.