(* your code goes here *)
let permute i j lst =
let ar
= Array.of_list
(lst
) in let tmp = ar.(i) in
ar.(i) <- ar.(j)
ar.(j) <- tmp
KCogeW91ciBjb2RlIGdvZXMgaGVyZSAqKQoKCmxldCBwZXJtdXRlIGkgaiBsc3QgPSAKICAgbGV0IGFyID0gQXJyYXkub2ZfbGlzdCAobHN0KSBpbgogICBsZXQgdG1wID0gYXIuKGkpIGluCiAgIGFyLihpKSA8LSBhci4oaikgCiAgIGFyLihqKSA8LSB0bXAgCiAgIEFycmF5LnRvX2xpc3QoYXIpCg==
File "prog.ml", line 8, characters 10-12:
Error: Syntax error: ')' expected
File "prog.ml", line 7, characters 6-7:
Error: This '(' might be unmatched