Difficulty in Achieving Required Implementation about flatten

Hi,

You should read this to understand why your implementation failed.

Best,
Saif.