BrainRocket interview question

Tricky JS question without any logic