debug for GOT 1
simple application of counting sort