Chartbeat interview question

Design a highly performant API