Domanda di colloquio di MulticoreWare

Island perimeter program question from the leetcode platform