• + 1 comment

    You didn't define n here. What is n? The length of arr?