Getting specific sub folder ID

I have a scenario.

I have a parent folder ID and inside the parent folder there is may folder. And inside the folder there is many sub folder. Now I have to find out a specific subfolder ID withe help of 

parent folder ID.

Please suggest.

Thanks!

  Discussion posts and replies are publicly visible