ARI Simulation interview question

oops, basic tricky ques, ds, javascript