SPAR Solutions interview question

as per the requirements . .