How Did Snapping Shrimp Evolve their Snap?

How Have Snapping Shrimp Evolved to Snap?
Facebook