~/orders.log has one line for each item sold today: the time, then the product. Find out what sells most.
Something unclear, wrong or missing?
Terminallearner@tidepool · simulated Linux machine · seed r9xdxz
Default · in usePhosphor · reach level 2 to unlock a themeAmber · reach level 2 to unlock a themeSynthwave · reach level 2 to unlock a themeArctic · reach level 2 to unlock a theme
0:00Reset lab (rebuilds the machine)
Objective 1 of 30/3 done
Count each product
Take the product column, sort it, and count the repeats.
Count each product
Take the product column, sort it, and count the repeats.
Rank them
Add a sort that puts the largest count first.
Save the top two
Save the two best sellers, with their counts, in ~/top2.txt.