Ransom Note Check

00:00
EasyStringHashMapArray
Amazon

Given a ransom note string and a magazine string, return if you can construct the ransom note from the magazine letters. Each letter can only be used once.

Examples

Input → note='a', mag='b'
Output → False
Input → note='aa', mag='ab'
Output → False
Input → note='aa', mag='aab'
Output → True