Revolut Interview Question

Javascript scope and context