Amazon Interview Question

data structures in java and javascript for front end