Pregunta de entrevista de Netskope

2 leetcode medium question on stack and hashmap based