Prefix Implementation

Now solved