Ramp interview question

React coding challenge in a file