Alior Bank Interview Question

Stackoverflow vs OutOfMemoryError. How do you make them happen