Deriv.com Interview Question

JavaScript assignment in timed period