Clustering is an unsupervised learning technique that groups a set of objects such that objects in the same…