Photon interview question

basic interview quetions and js coding