Social Network Likes Count

Asked at Lead Bank · Coding Questions · Difficulty: Easy

The first row represents `bob` liked `mary` 6 times, and `mary` liked `bob` 4 times. Design a data structure to store these likes data and implement a function to input two user names, returning the number of likes the first user gave to the second user.

Loading the problem…