Solver interview question

Basic and advance java and sql