Pregunta de entrevista de Oracle

DSA questions based on stack and trees medium difficulty and coding based on java 8