GlobalLogic interview question

Spring security