Amazon Interview Question

Write a program to calculate AUC