Enigma Interview Question

Basic Oops with real world example.