Bally's Interactive Interview Question

How genetic algorithms work?