Amadeus Interview Question

function pointer, memory leak, design pattern