Pergunta de entrevista da empresa IBM

2 DSA questions which were easy to medium