Photon Interview Question

it was hackerrank assessment round