Answer:
after 1st swap
value=2 ,list[0]=1
after 2nd swap
list[0]=1,list[1]=3
after 3rd swap
value=2,list[value]=5.
Passed By Value.
Explanation:
As we see the parameters passed to the function are passed by value they are not passed by reference so there will be no swapping performed on the original values because when the arguments are passed by value the function creates a copy of original arguments and work on those duplicate arguments.Hence no change will be reflected on the original arguments.