Ejada interview question

Problem solving and tracing for JS