Pregunta de entrevista de Bank of America

Very basic level algorithm questions