In this problem Hash Tables: Ransom Note have discussed basic ways in which we can solve this function and then solved using unordered_map(string, int) word. "angled bracket not allowed"
Code- https://gist.github.com/Kuldip-G/227a...
If you are solving hackerrank interview preparation then do check out the playlist:
• Hackerrank Interview Preparation Kit