Mastercard interview question

Basic java, spring boot, hibernate