Photon Interview Question

Most of the stuff was easy