BeamTrail interview question

some basic java questions, reactive programming