Purdue University interview question

How does segmentation analysis work on R studio?