Oracle Interview Question

Standard no. Of Islands problem first the logic then the code