Count sort algorithm simulation in c programming language and simple problem on sorted array