Added solution for SnapperChain. Only works for the small input for the time being. Need to generalise the solution