Pregunta de entrevista de Apple

Sort the version number(string separated by dots)