Pergunta de entrevista da empresa HARMAN

Snippet related to Exception and finding its output for different scenario