Revolut interview question

volatile, synchronized(), atomic integer with example