C/C++ Coding Exercise – Ransom Note (unordered_map or array)

Two strings are both lowercase letters. Write a function to determine if one string can be constructed using the letters from the other string. For example: canConstruct("aa", "ab") = …