Delete duplicates problem

ques–https://hack.codingblocks.com/contests/c/424/115
soln–https://ide.codingblocks.com/#/s/15176

Your code is giving runtime errror … You should fix this first