Pregunta de entrevista de Oracle

in coding round one API question was asked and in the technical interview they ask Python basics after that they given me to sort a string