find paths have given sum