Question d’entretien chez NonStop io Technologies

Basic RoR questions, coding problem from Leetcode.