Can you please check my code

your code is not correct

and you are not using insertion sort

which sorting algorithm you are trying to use?