Sponsored
Use these hints if you're stuck. Try solving on your own first.
Do BFS to find the kth level friends.
Then collect movies saw by kth level friends and sort them accordingly.
Solve with full IDE support and test cases