Pregunta de entrevista de FlairsTech

I was given a problem solving question