Loop Health Interview Question

Java