IBM Interview Question

Algorithms and database