Solve LittleElephantAndDouble