Design a rating aggregator that returns totals and averages | Atlassian Interview Question