Uber Interview Question

Write out a function to calculate the AUC of an ROC curve.