Bright Crowd interview question

A take- home challenge