Mastercard Interview Question

Java 8, Design pattern , linear coding questions