Pergunta de entrevista da empresa Photon

It was coding interview round