Photon interview question

Normal angular questions with some basic js