PepsiCo Interview Question

Tell me about closures with an example (in a code editor)