const endorsements = [
{ skill: 'css', user: 'Bill' },
{ skill: 'javascript', user: 'Chad' },
{ skill: 'javascript', user: 'Bill' },
{ skill: 'css', user: 'Sue' },
{ skill: 'javascript', user: 'Sue' },
{ skill: 'html', user: 'Sue' },
];
const skills = [];
// output skills
// [
// { skill: 'javascript', users: ['Chad', 'Bill', 'Sue'], count: 3 },