Atlassian interview question

Implement a statistical analysis data algorithm