What happens if a Visa Waiver Program applicant is found to be inadmissible?

If a person is admitted but is not deemed eligible to enter into the United States under the Visa Waiver Program are returned to their country of origin or a third-country country in which they hold a round-trip ticket at the time that brought them at the United States and was denied admission.