GreenWave Radios Interview Question

Sequence detector Coding How to detect the rising edge