Deliveroo interview question

List processing - filtering, concatenating