I have updated the time complexity of the method from O(N^2) to O(N).
Additionally, all the test cases in the mapping package have passed successfully.
[ ] You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes.
[ ] You submit test cases (unit or integration tests) that back your changes.
[ ] You added yourself as author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only).
Comment
I have updated the time complexity of the method from O(N^2) to O(N). Additionally, all the test cases in the mapping package have passed successfully.