The program had to be uploaded to my universities portal that checked the solution, that's why the classes aren't separated into different files!!
The list of cars are provided in a list, first how many cars there are, followed by the cars and their size (eg. width and height). The program loads these cars in a list, and rearranges them in a descending order based on their width and size (or both) thus placing the exceptionally large ones first and filling the gaps with the smaller cars after.
This is a small collection of scripts I wrote to solve CTF Challenges on the CrySys Secchallenge.