Verizon Interview Question

java coding in as per jd