Pregunta de entrevista de Amazon

Stack-based, sets and hashmap based and one design