Implementing a referral-based loyalty scheme proves beneficial for businesses with infrequent customer transactions or those aiming to expand their customer base.During a recent coding round for a Software Development Engineer position at PayGlocal, I was presented with an interesting challenge: designing a Java class hierarchy to efficiently handl