Rippling Interview Question

System design and LC mid question