360Logica Interview Question

Java