Adobe Interview Question

Array, linked list, tree Tap rainwater Print all node at distance k including cousin nodes