- We want to see your coding and pairing practices.
- Imagine this is a ral world example. So use your usual practices
given this:
{
id: 1,
name: 'john',
tweets: [
{id: 1, content: 'I love insurance'},
{id: 2, content: 'insurance is good'},
]
},
{
id: 2,
name: 'luis',
tweets: [
{id: 1, content: 'I love donuts'}
]
},
{
id: 3,
name: 'pedro',
tweets: [
{id: 1, content: 'Donuts are good...'},
{id: 2, content: ... but insurance is best'},
]
}
Based on the number of times the word insurance is mentioned in their tweets, compute their "insurance score":
[
{id: 1, name: 'john', score: 2},
{id: 2, name: 'luis', score: 0},
{id: 3, name: 'pedro', score: 1}
]