I know HashMaps are not sorted in any way. Somehow the Task wants the output to be in the same order as the input. Maybe you can help me achieve this. I have no clue how to sort a Map by the sequence of the input.