Ping Identity Interview Question

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