Mastercard interview question

Some basis questions form java, current project