solution to Giovanni Resta's 2016 puzzle