Java Application to solve '4 pics one word'