Netomi interview question

DSA questions and a machine coding round about a scenario