Pregunta de entrevista de AeroVect Technologies

During the the technical interview, they asked me to code a solution for a given problem.