Pregunta de entrevista de Gupshup

in first round just simple two coding problem