Write a function that LEFT JOINs two hashmaps into a single data structure
The left join function iterates through the keys of the first hashmap (synonyms) and performs a constant time check for each key's existence in the second hashmap (antonyms). Based on the result, it appends the appropriate values (synonym and antonym) to the result data structure. This ensures that the left join logic is followed, returning all keys and their corresponding values from the first hashmap, along with the associated antonyms from the second hashmap if present.
Time Complexity: O(n), where n is the number of key-value pairs in the first hashmap.
Space Complexity: O(n), as the result data structure contains n tuples, where n is the number of key-value pairs in the first hashmap.
Code code33
Test test33