Solution for Boundary problem