Gainsight interview question

tree path problem