Ranging over maps is unordered in golang, so we need to use the correct data structure if we need the output in an ordered way.
Ranging over maps is unordered in golang, so we need to use the correct data structure if we need the output in an ordered way.