Amazon Interview Question

java fundaments