Rippling interview question

System design and LC mid question