UST interview question

Core Java, spring framework