make shootout-k-nucleotide.rs pass official test

Correct printing (sort, new lines), reading on stdin.
auto merge of #13206 : TeXitoi/rust/fix-shootout-k-nucleotide, r=cmr

Correct printing (sort, new lines), reading on stdin.