Capital One interview question

Graph a weighted average