tracks lists song numbers in play order. The player is set to repeat, and the playlist will play exactly twice in a row.
Return every song in the order it will be heard; the answer has length 2 * len(tracks).tracks=[4, 9, 2] → [4, 9, 2, 4, 9, 2]
The playlist 4, 9, 2 plays twice in a row.
tracks=[5, 5] → [5, 5, 5, 5]
Repeats inside the playlist stay put, so there are four 5s.
tracks=[1000] → [1000, 1000]
tracks=[4, 9, 2]
[4, 9, 2, 4, 9, 2]
Run checks the first 3 tests in your browser. Submit checks all 71 tests on the server, hidden ones included.