667. Beautiful Arrangement II(python+cpp)

NoSuchKey