Solution

Concept:
In case of linear probing (a collision resolution technique) if the location is available in hash table then it will be placed there, but if it is already occupied then it will be placed in next available position.
Here, key=18 will get hash value 4, therefore, it should be placed in position 4 in the hash table, but it is already occupied by key=7.Now, the next available place is 5.Thus, key=18 is placed in position 5.