Global Payments interview question

oops, advance oops, design patterns, sql