Subex interview question

Java and spring related question