OpenText Interview Question

Difference between sanity, smoke and regression testing and when those should be tested