Circular Edge interview question

java OOP and DB questions