Photon interview question

it was hackerrank assessment round