FIRMINIQ interview question

Clustering Logical questions 1 program in js