Constructor interview question

Design an endpoint for item page recommendations based on user click data.