Pergunta de entrevista da empresa Capital One

Java question regarding binary decision trees