An interview task I was asked to complete