Moveworks interview question

leetcode question, react, system design