An interesting interview task I was asked to complete