Solution Graph interview question

Oops concept My sql Spring Hibernate Jdbc