Solve LittleElephantAndString