How to build an interactive smart questionnaire based on user selection values.Specifically, based on what user selects in the response next level of questions should be populated.How to implement this in Java