Pergunta de entrevista da empresa Meta

2 LC medium questions, similar difficulty and both used hash tables.