Trustpilot interview question

How could you make your solution to the challenge reusable?