trivago Interview Question

discussion about patterns.