Adecco Interview Question

A novel approach to an older problem