freq1, freq2, and freq3 of size 101 (since numbers range from 1 to 100).nums1, nums2, and nums3, incrementing the corresponding index in the respective frequency array.result to store the distinct numbers present in at least two arrays.result set.result set to a list and return it.