BosonQ Psi interview question

question on linked list, another one on BFS