IBM interview question

OA: 2 coding questions about data structure and algorithms. Quick Interview: answer the given scenario question