Knowledgeq Interview Question

basic from javascipt