ordered is only 200points and it takes me quite some time to finish! This seemingly easy job is not as trivial as it looks like as I have to use a map to check the highest freq and use gcd to finalize result.