Xoriant Interview Question

javascript basics