BrainRocket Interview Question

Tricky JS question without any logic