Question

Write a function that swaps two numbers at given positions from the list?

Login to Submit

Examples

Input: [1, 2, 3, 4, 5] 2 3
Output: [1, 2, 4, 3, 5]
Reason: Numbers at position 2 and 3 are swapped.