Solution to a programming challenge posted by Mesh Capital