Pregunta de entrevista de Capital One

Java question regarding binary decision trees