Amazon interview question

Started with basic java and sql