Capgemini Interview Question

How to override spring security implementation?