How to capture inputs from hierarchical fields

Hi,
I have 3 fields listed as drop downs in the screen
Field 2 is enabled with options based on option selection in Field 1
**Field 3 ** is enabled with options based on option selection in Field 2

And, based on all the three fields inputs, further fields (1 field for some combinations and More than 1 field for some combinations get displayed.
All in all, there are about 185 combinations of field 1, field 2 & field 3.

I would like to know what is the best possible way (obviously data driven approach) can be followed in terms of scripting for these behaviours.

Attached the image below for reference.

please respond with your suggestions.