Pregunta de entrevista de Smarkets

easy string question & medium graph question