SORT GAME Summer of algorithm challenge

solution = https://ide.codingblocks.com/#/s/20230
question= https://hack.codingblocks.com/contests/c/452/90

check this
https://ide.codingblocks.com/#/s/20246