Pregunta de entrevista de Ping Identity

- implement singlton - implement atutomat in good complexity and saving time