Leetcode Problem Linked Logic And Causal System In Signals