Sphinx Solution Interview Question

mix of javascript and react js and problem solving