ARI Simulation Interview Question

oops, basic tricky ques, ds, javascript