fibonacci & carpenter problem