NTT DATA Interview Question

How to create beans in Spring.