in this function if we want a node at position 2 then according to this we will take only 1 jump (p-1) but then the new node will get inserted at position 3
0 1 2 3
1 jump means pointer will be at 1 and after 1 new node will get inserted