Mastercard Interview Question

JAVA 8 and Data structure and alogrither