First off, thanks!
Second, copying levels is a great way to learn how to make your own levels.
All you need to do (if you want to recreate all the levels from the original game) is to contact the company that made the game and ask for permission. Offer to promote their game in some way (usually by giving credit), and they’ll almost always say “yes”.
If they say “no”, find another game, and contact that company.
The only reason this could be a problem is because you plan to sell your work.
Do NOT delete this thread/topic because it can help others who do not know the rules of game distribution.