Pergunta de entrevista da empresa YASH Technologies

Asked to write code for a given scenarios in second technical round