Please check my code
make the sizeof array 10000001
and define the arr array as global since the max size defined in local scope is lesser than that defined in global scope
make the sizeof array 10000001
and define the arr array as global since the max size defined in local scope is lesser than that defined in global scope