Ajira Interview Question

Round 1 - List and Tree based question