Ticket Swapping solutions

Ticket Swapping was solved using PHP by 1 contestant.