Counting Sort (Segmentation fault)

Hello @bhavuk_tomar i have corrected your code and commented the mistake:


if you have any doubt you can ask here:
Happy Learning!!