Compute top-N posts in a workspace | Atlassian Interview Question