Create Checking if three consectuive nodes in a linked list contains 1