DIOPTIC Interview Question

JavaScript output-based question given on the paper?