Amazon interview question

Write a program to calculate AUC