Pregunta de entrevista de QuaDigi

Got home coding task, which was realistic scenario, Better than just having algorithmic question