Marlabs interview question

basic java santex questions and some basic algorithm questions