Domanda di colloquio di Sainsbury’s

typical leetcode, hackerrank medium level DS questions