Pergunta de entrevista da empresa IBM

Two Dsa questions were asked easy difficulty level