Solution needed

No.
first, can;t see the problem statement as it requires login.
second, we may discuss your approach and implementation, why is giving you tle and changes you may do, bu I have no interest in giving you the solution

regards
Duplicate "do all the work for me" post: http://www.cplusplus.com/forum/beginner/253829/
Topic archived. No new replies allowed.