I have a problem with this topic ..Solution to algorithm using static and dynamic data structure

I have a problem with this topic ..Solution to algorithm using static and dynamic data structure

I have a problem with this topic too. There is no solution to the stated problem.

Sorry but what is it that you want?