Frage im Vorstellungsgespräch bei MulticoreWare

Island perimeter program question from the leetcode platform