Splunk Interview Question

Implement Lock in JDK