Collage.com interview question

Solve an issue in code.