Leetcode Problem Linked Logic And Causal System Model