Dialpad interview question

String based Stack based question System design easy