Codility Plane Seat Reservation Python