Nium interview question

2 Programming Questions Some questions on Data Structures