Rootquotient interview question

Gave a Javascript code and asked for its output