WeAre8 interview question

How do I use data to create segments for personalised campaigns ?