AeroVect Technologies interview question

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