Word break problem

code:https://ide.codingblocks.com/s/611619

problem : https://leetcode.com/problems/word-search/ please check the approach