hims & hers Interview Question

Solve a problem/task in a react component