Velotio interview question

Asked me to solve a DSA problem and one project based problem.