Ekimetrics Interview Question

First in last out algorithm