Three inputs to control single output(led)

What happens and what's wanted?