Mastercard interview question

Java 8, Spring boot, JPA, Hibernate