need the code for it
We are not here to do your project. We will not google search for you.
You are not even a competitive programmer. We may clear your doubts related to programming (which is not CP) but remember this is not StackOverflow, StackExchange which better serve as a platform for it.