Amazon Interview Question

How do you compare two samples to see if they come from the same distribution?