Amazon interview question

coding with 1 OOD and 1 algorithm question