Rippling interview question

two programming and one system design