Palo Alto Networks Interview Question

find the elements from 4 array whose sum is equal to some number X. Linux permissions and basic commands.