Computer implementation of a puzzle invented by Albert Einstein
