Remaining leaves

Company: HackerRank_26thjune

Difficulty: easy