Pregunta de entrevista de C3 AI

Simple sorting array problem and 1 hard graph problem